package zipFile;


import lombok.Data;

import java.io.File;
import java.io.Serializable;
@Data
public class ZipFileInfo implements Serializable {
    private File file;
    private String zipEntryName;

    public static ZipFileInfo createZipFileInfo(String filePath, String zipEntryName) {
        ZipFileInfo zipFileInfo = new ZipFileInfo();
        zipFileInfo.setFile(new File(filePath));
        zipFileInfo.setZipEntryName(zipEntryName);
        return zipFileInfo;
    }



    public static ZipFileInfo createZipFileInfo(File file, String zipEntryName) {
        ZipFileInfo zipFileInfo = new ZipFileInfo();
        zipFileInfo.setFile(file);
        zipFileInfo.setZipEntryName(zipEntryName);
        return zipFileInfo;
    }
}
